Creating a more secure class