I have some minor experience using private classes using Murach's C# book, but I am still very much a novice. I am trying to create my own project which consists of a "Patient Id" "Name" "Weight" and then a equation for recommended daily protein intake (weight \* .86). This eventually will be made into a basic database, however, right now I am struggling to even display the results. Furthermore, the calculation for daily protein intake will not work in the class I made.

Here is my class code:

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Form1
{
public class Intake
{
    private string name;
    private int patientId;
    private int weight;
    //private int proteinIntake = weight * .86;

    //Constuctor
    public Intake() { }

    //Overload Constructor
    public Intake(string name, int patientId, int weight)
    {
        this.Name = name;
        this.PatientId = patientId;
        this.Weight = weight;

    }

    public string Name
    {
        get
        {
            return name;
        }
        set
        {
            name = value;
        }
    }
    public int PatientId
    {
        get
        {
            return patientId;
        }
        set
        {
            patientId = value;
        }
    }
    public int Weight
    {
        get
        {
            return weight;
        }
        set
        {
            weight = value;
        }
    }

    public string GetDisplayText(string sep) =>
        name + patientId + sep + weight;
}
}

```

Here is my form code:

```
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Form1
{
public partial class Form1 : Form
{
    public static Intake intake = null;

    public Form1()
    {
        InitializeComponent();
    }

    private void btnExit_Click(object sender, EventArgs e)
    {
        this.Close();
    }

    private void btnCalculate_Click(object sender, EventArgs e)
    {

        Intake intake = new Intake(txtName.Text, Convert.ToInt32(txtPatientId.Text), Convert.ToInt32(txtWeight.Text) );

     //obviously does not work  MessageBox.Show("Name: " + intake.name);

    }

}
}

```

And, if it matters, here is my ugly form [![My Ugly Form](https://i.stack.imgur.com/I2Y0o.png)](https://i.stack.imgur.com/I2Y0o.png)